package com.example.teacher.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.domain.dto.WorkDto;
import com.example.common.domain.pojo.Homework;

public interface HomeworkService extends IService<Homework> {

    // 使用逻辑过期策略获取教师信息
    Homework getHomeworkByIdWithLogicalExpire(String id);

    //发布作业逻辑
    void sendAssignmentNotification(WorkDto workDto);

    //保存作业到数据库
    void saveHomework(WorkDto workDto);

    //http形式保存作业到数据库
    void InsertHomework(Homework homework);

    //条件分页获取作业（题目）
    Page<Homework> queryHomeworkPage(WorkDto workDto, Integer pageNum, Integer pageSize);

    //更新作业
    void updateHomework(Homework homework);


}
